package com.ruoyi.awards.mapper;

import java.util.List;
import com.ruoyi.awards.domain.JwCompetitionAwards;
import com.ruoyi.common.annotation.DataScope;

/**
 * 竞赛获奖情况Mapper接口
 * 
 * @author ruoyi
 * @date 2024-11-13
 */
public interface JwCompetitionAwardsMapper 
{
    /**
     * 查询竞赛获奖情况
     * 
     * @param caId 竞赛获奖情况主键
     * @return 竞赛获奖情况
     */
    public JwCompetitionAwards selectJwCompetitionAwardsByCaId(Long caId);

    /**
     * 查询竞赛获奖情况列表
     * 
     * @param jwCompetitionAwards 竞赛获奖情况
     * @return 竞赛获奖情况集合
     */
    @DataScope(deptAlias = "d",userAlias = "d")
    public List<JwCompetitionAwards> selectJwCompetitionAwardsList(JwCompetitionAwards jwCompetitionAwards);

    /**
     * 新增竞赛获奖情况
     * 
     * @param jwCompetitionAwards 竞赛获奖情况
     * @return 结果
     */
    public int insertJwCompetitionAwards(JwCompetitionAwards jwCompetitionAwards);

    /**
     * 修改竞赛获奖情况
     * 
     * @param jwCompetitionAwards 竞赛获奖情况
     * @return 结果
     */
    public int updateJwCompetitionAwards(JwCompetitionAwards jwCompetitionAwards);

    /**
     * 删除竞赛获奖情况
     * 
     * @param caId 竞赛获奖情况主键
     * @return 结果
     */
    public int deleteJwCompetitionAwardsByCaId(Long caId);

    /**
     * 批量删除竞赛获奖情况
     * 
     * @param caIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteJwCompetitionAwardsByCaIds(Long[] caIds);

    /**
     * 查询全部竞赛获奖情况列表
     * 
     * @param jwCompetitionAwards 竞赛获奖情况
     * @return 竞赛获奖情况集合
     */
    public List<JwCompetitionAwards> selectAllJwCompetitionAwards(JwCompetitionAwards jwCompetitionAwards);
}
